package com.hsqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 会员信息表
 * </p>
 *
 * @author lingwenjie
 * @since 2025-11-05
 */
@Getter
@Setter
@TableName("member_info")
public class MemberInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会员ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会员编号
     */
    private String memberNo;

    /**
     * 老人ID
     */
    private Long elderlyId;

    /**
     * 会员等级(1-普通,2-白银,3-黄金,4-钻石)
     */
    private Byte memberLevel;

    /**
     * 卡片状态(0-禁用,1-正常,2-过期)
     */
    private Byte cardStatus;

    /**
     * 账户余额
     */
    private BigDecimal balance;

    /**
     * 入会时间
     */
    private LocalDateTime joinTime;

    /**
     * 过期时间
     */
    private LocalDateTime expireTime;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;
}
